package com.cn.serverline.lineicp.productionLine.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Data;
import java.sql.Timestamp;

/**
 * 工序表
 *
 * @author Gmr
 * @since 2024-07-30
 */
@TableName("CT_PRODUCTION_PROCESSES")
@Data
@EqualsAndHashCode(callSuper = false)
public class ProductionProcesses extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @ChineseDescription("主键")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 产品结构ID
     */
    @ApiModelProperty(value = "产品结构ID")
    @ChineseDescription("产品结构ID")
    @TableField("PRODUCT_MIX_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long productMixId;

    /**
     * 工序代号
     */
    @ApiModelProperty(value = "工序代号")
    @ChineseDescription("工序代号")
    @TableField("PROCESS_CODE")
    private String processCode;

    /**
     * 分厂代号
     */
    @ApiModelProperty(value = "分厂代号")
    @ChineseDescription("分厂代号")
    @TableField("FACTORY_CODE")
    private String factoryCode;

    /**
     * 工序名称
     */
    @ApiModelProperty(value = "工序名称")
    @ChineseDescription("工序名称")
    @TableField("PROCESS_NAME")
    private String processName;

    /**
     * 单件工时
     */
    @ApiModelProperty(value = "单件工时")
    @ChineseDescription("单件工时")
    @TableField("UNIT_TIME")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long unitTime;

    /**
     * 工人技术等级
     */
    @ApiModelProperty(value = "工人技术等级")
    @ChineseDescription("工人技术等级")
    @TableField("WORKER_SKILL_LEVEL")
    private String workerSkillLevel;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @ChineseDescription("排序")
    @TableField("SORT")
    private Long sort;

}
